﻿@model MvcApplication1.Models.User
@{
    ViewBag.Title = "AccountEdit";
}


@if(ViewBag.changesuccess==true)
{
    <script type="text/javascript">
        alert("保存成功");
    </script>
}
<div class="editor-label">
    @Html.LabelFor(m=>m.username,"用户名")
    @Html.DisplayFor(m => m.username)
    @Html.ActionLink("修改密码","ChangePassword")
</div>  
@{
    using(Html.BeginForm("AccountEdit","Account"))
    {
        <div class="editor-label">
    
                @Html.LabelFor(m=>m.email,"Email")
                @Html.EditorFor(m => m.email)
                @Html.HiddenFor(m=>m.username)
                <input type="submit" value="保存" />
        </div> 
    }
}
<div class="editor-label">
    @Html.LabelFor(m=>m.lastlogin,"上次登录")
    @Html.DisplayFor(m=>m.lastlogin)
</div>  
<div class="editor-label">
    @Html.LabelFor(m=>m.creationdate,"注册时间")
    @Html.DisplayFor(m=>m.creationdate)
</div>   

